
package com.android.formula.task;

/**
 * Used to notify to UI the result from background.
 * 
 * @param <T> type of data want to return.
 */
public interface IDataEventHandler<TData> {
    /**
     * @param resultCode code of the result: success, fail, network error code.
     * @param data
     */
    public void onNotifyData(TData data);

    public void onNotifyNoData();

    public void onNotifyErrorMessage(String title, String message);
}
